def sum_fun(*args):
    sum=0

    for i in range(len(args)):
        sum=sum+args[i]
    print("sum=%d"%sum)

sum_fun(1,2,3,4,5)